package com.mapper;

import com.entity.Membertype;
import com.entity.MembertypeExample;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MembertypeMapper {
    long countByExample(MembertypeExample example);

    int deleteByExample(MembertypeExample example);

    int deleteByPrimaryKey(String mtno);

    int insert(Membertype record);

    int insertSelective(Membertype record);

    List<Membertype> selectByExample(MembertypeExample example);

    Membertype selectByPrimaryKey(String mtno);
    List<Membertype> selectByMtnoWithMembers(String mtno);

    Membertype selectByMemberANdAdmin(String mtno);

    int updateByExampleSelective(@Param("record") Membertype record, @Param("example") MembertypeExample example);

    int updateByExample(@Param("record") Membertype record, @Param("example") MembertypeExample example);

    int updateByPrimaryKeySelective(Membertype record);

    int updateByPrimaryKey(Membertype record);
}